#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	void copy_string(char from[], char to[]);
	char a[] = "i am a teather";
	char b[] = "you ara a student";
	printf("stringa= %sstringb = %s\n", a, b);
	printf("\ncopy string a to string b;\n");
	copy_string(a, b);
	printf("string a = %s\nstring b = %s\n", a, b);
	return 0;
}
void copy_string(char* from, char* to)
{
	int i = 0;
	while (from[i])
	{
		to[i] = from[i];
		i++;
	}
	to[i] = '\0';
}